import React, { Component } from 'react';
import Son from './Son';

export default class App extends Component {
    render () {
        return (
            <div>
                {/* render 属性名字可以任意取 */}
                <Son render={(state) => (
                    <span>hello! {state}</span>
                )} />
            </div>
        );
    }
}
